package com.firmye.codereposboot.dao;

import com.firmye.codereposboot.model.user.pojo.Resource;
import com.firmye.codereposboot.model.user.pojo.Role;
import com.firmye.codereposboot.model.user.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Firmye
 * @Date 2018-9-1 19:30:24
 * 
 * @Description 
 */
public interface UserDao {
	
	int insertUser(User user);
	
	int updateUser(User user);
	
	List<User> queryAll();

	User queryUserByUsername(String username);

	List<Role> queryRolesByIds(@Param("roleIds") String roleIds);

	List<Role> queryAllRole();

	List<Resource> queryResesByIds(@Param("resIds") String resIds);
}
